package com.pgy.general.result;

/**
 * @Auther:superChao
 * @Date: 2021/01/13/19:42
 * @Version:2.0.0
 */
public class RetResult {

    public int code;

    private String msg;

    private Object data;

    public RetResult setCode(RetCode retCode) {
        this.code = retCode.code;
        return this;
    }

    public int getCode() {
        return code;
    }

    public RetResult setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public RetResult setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Object getData() {
        return data;
    }

    public RetResult setData(Object data) {
        this.data = data;
        return this;
    }
}
